package agentspeakeditor.editors.common.AST.Line;

import java.util.ArrayList;

import agentspeakeditor.editors.common.AST.AST;
import agentspeakeditor.editors.common.checker.SemanticException;
import agentspeakeditor.editors.common.checker.Visitor;

public class Body extends AST{

	ArrayList<Command> commandList;
	
	public Body(ArrayList<Command> commands){
		this.commandList = commands;
	}
	
	public ArrayList<Command> getCommands() {
		return commandList;
	}

	public void setCommands(ArrayList<Command> commands) {
		this.commandList = commands;
	}

	@Override
	public Object visit(Visitor v, Object arg) throws SemanticException {
		return v.visitBody(this, arg);
	}

	@Override
	public String toString(int level) {
		// TODO Auto-generated method stub
		return null;
	}

}
